package file;

import java.io.File;

public class MkDirDemo {
    public static void main(String[] args) {

        //File file = new File("./demo");
        File file = new File("./a/b/c//d/e/f");
        //创建目录
        if(file.exists()){

            System.out.println("目录已存在");
        }else{
            //file.mkdir();
            file.mkdirs();
            System.out.println("目录创建成功");
        }

    }
}
